package com.blog.utils;

import org.springframework.stereotype.Component;

/**
 * 后台公共函数
 *
 * @author wmb
 *
 * @since 2021-2-9
 */
@Component("adminCommons")
public class AdminCommons {

    private static final String[] COLORS = {"default", "primary", "success", "info", "warning", "danger", "inverse", "purple", "pink"};

    public static String randColor() {
        int r = Tools.rand(0, COLORS.length - 1);
        return COLORS[r];
    }
}
